package com.lz.service.impl;

import com.lz.dao.SellerInfoDao;
import com.lz.entity.SellerInfo;
import com.lz.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 卖家端service
 * Created by Administrator on 2018/9/5 0005.
 */
@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellerInfoDao sellerInfoDao;

    /**
     * 通过openid查询卖家信息
     * @param openid
     * @return SellerInfo
     */
    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        return sellerInfoDao.findByOpenid(openid);
    }
}
